package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.IsWorkOrderInfo;
import cn.com.nes.site.entity.vo.workOrder.RepairWorkOrderVo;
import cn.com.nes.site.service.workOrder.dto.RepairWorkOrderDto;
import cn.com.nes.site.service.workOrder.dto.UsedPartDto;
import cn.com.nes.site.service.workOrder.dto.WorkOrderFollowUpRecordDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 工单Mapper
 *
 * @Author: ShenWei
 * @Date: 2024/03/08/10:55
 */
@Deprecated
public interface IsWorkOrderInfoMapper extends BaseMapper<IsWorkOrderInfo> {
    List<RepairWorkOrderDto> getRepairWorkOrderInfoList(Page<RepairWorkOrderDto> page, @Param("vo") RepairWorkOrderVo vo);

    List<UsedPartDto> getUsedParts(@Param("workOrderId") String workOrderId, @Param("status") Byte status);

    List<Map<String, String>> getEquipIdsAndCollectingTime(String workOrderId);

    Date getWorkOrderRepairDoneTime(String workOrderId);

    List<WorkOrderFollowUpRecordDto> getWorkOrderFollowUpRecordsById(@Param("workOrderId") String workOrderId);
}
